setClipBounds

open fun setClipBounds(@NonNull view: View, @Nullable clipBounds: Rect)(source)

Deprecated

Call setClipBounds directly.

Sets a rectangular area on this view to which the view will be clipped when it is drawn. Setting the value to null will remove the clip bounds and the view will draw normally, using its full bounds.

Prior to API 18 this does nothing.

Parameters

view

The view to set clipBounds.

clipBounds

The rectangular area, in the local coordinates of this view, to which future drawing operations will be clipped.